package com.yugao.fintech.antelope.shop.controller.admin;

import com.yugao.fintech.antelope.shop.model.rqrs.UmsMemberResp;
import com.yugao.fintech.antelope.shop.service.UmsMemberProfileService;
import com.yugao.fintech.framework.core.response.Resp;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @deprecated

 */
@Api(tags = "用户档案")
@RestController
@RequestMapping("/memberProfile")
public class UmsMemberProfileController {
    @Autowired
    private UmsMemberProfileService umsMemberProfileService;

    /**
     * 获取个人数据
     */
    @GetMapping("/getProfile")
    public Resp<UmsMemberResp> getProfile() {
        UmsMemberResp rs = umsMemberProfileService.getProfile();
        return Resp.ok(rs);
    }
}
